package com.situ.struts.service.impl;

import com.situ.struts.entity.Admin;
import com.situ.struts.service.IAdminService;

public class AdminServiceImpl implements IAdminService {

	@Override
	public Admin login(Admin admin) {
		if ("zhangsan".equals(admin.getName())
				&& "123".equals(admin.getPassword())) {
			return admin;
		}
		return null;
	}

}
